<script setup lang="ts">
import {onMounted} from "vue";
import {userStore} from "@/store/user.ts";
import router from "@/router";

const user = userStore()


onMounted(() => {
  if(user.userInfo?.role === '开票员') {
    if(user.userInfo.sellerRoleList?.includes('顺丰')) {
      router.push('/invoice_sf')
      return
    }

    if(user.userInfo.sellerRoleList?.includes('合丰')) {
      router.push('/invoice_hf')
      return
    }
  } else {
    router.push('/statistic')
    return
  }
})
</script>

<template>
  <div></div>
</template>

<style scoped lang="scss">

</style>
